How to use RETURN keyword in Stored Procedure in SQL Server?
How to use RETURN keyword in Stored Procedure in SQL Server?
I completed my post-graduation in 2013 in the engineering field. Engineering is the application of science and math to solve problems. Engineers figure out how things work and find practical uses for scientific discoveries. Scientists and inventors often get the credit for innovations that advance the human condition, but it is engineers who are instrumental in making those innovations available to the world. I love pet animals such as dogs, cats, etc.
Steilla Mitchel
08-Nov-2021Stored Procedure with RETURN keyword:
The use of RETURN keyword in SQL Stored Procedure is to return the process after executing a specific part of stores procedure. If you have created a large stored procedure and you want to execute or run only some part of that stored procedure and then close execution then you can use the RETURN keyword after that specific part of code that you want to execute. The RETURN keyword return the process of execution after process a specific part of code.
Ex-